/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.logical.allhit.util;

import com.logical.allhit.gui.MainFrom;

/**
 *
 * @author Sanjeet Jha
 */
public class MsgLogger{
    
    private static final MsgLogger instance = new MsgLogger();
    private MainFrom mainFrom;


    private MsgLogger() {
    }
    
    public static MsgLogger getInstance(){
        return instance;
    }

    public void setMainFrom(MainFrom mainFrom){
        this.mainFrom = mainFrom;
    }
    
    public void showMsg(String msg){
        mainFrom.showMsg(msg);
    }
    
    public void clearLog(){
        mainFrom.clearLog();
    }
    
}
